package view;

import java.awt.GridLayout;
import java.awt.SystemColor;

import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;

/**
 * @uthor BWH
 */

public class GUI_Journal extends JPanel {
	TeraFootMain teraFootMain;
	JTextArea txtJournal;

	public GUI_Journal(TeraFootMain teraFootMain) {
		setBackground(SystemColor.activeCaption);
		this.teraFootMain = teraFootMain;
		setLayout(new GridLayout(1, 0, 0, 0));

		final JScrollPane scrollPane = new JScrollPane();
		add(scrollPane);

		txtJournal = new JTextArea();
		scrollPane.setViewportView(txtJournal);
		txtJournal.setLineWrap(true);
	}

	public JTextArea getTxtJournal() {
		return txtJournal;
	}

}
